<template>
<div class="nav">
    <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" router @select="handleSelect">
<!---->
        <el-menu-item index="1" route="home"><a class="navbar-brand" href="#">
        </a></el-menu-item>



        <el-menu-item index="2" route="linkView">链接管理</el-menu-item>
        <!--<el-submenu index="3">-->
            <!--<template slot="title">备忘录</template>-->
            <!--&lt;!&ndash;<el-menu-item index="2-1">选项1</el-menu-item>&ndash;&gt;-->
            <!--&lt;!&ndash;<el-menu-item index="2-2">选项2</el-menu-item>&ndash;&gt;-->
            <!--&lt;!&ndash;<el-menu-item index="2-3">选项3</el-menu-item>&ndash;&gt;-->
            <!--&lt;!&ndash;<el-submenu index="2-4">&ndash;&gt;-->
                <!--&lt;!&ndash;<template slot="title">选项4</template>&ndash;&gt;-->
                <!--&lt;!&ndash;<el-menu-item index="2-4-1">选项1</el-menu-item>&ndash;&gt;-->
                <!--&lt;!&ndash;<el-menu-item index="2-4-2">选项2</el-menu-item>&ndash;&gt;-->
                <!--&lt;!&ndash;<el-menu-item index="2-4-3">选项3</el-menu-item>&ndash;&gt;-->
            <!--&lt;!&ndash;</el-submenu>&ndash;&gt;-->
        <!--</el-submenu>-->
        <el-menu-item index="3" >备忘录</el-menu-item>
        <el-menu-item index="4" >记账</el-menu-item>
        <el-menu-item index="5">行程计算</el-menu-item>
    </el-menu>
    <div class="line"></div>
</div>



</template>
<script>
    export default {
        data() {
            return {
                activeIndex: '2',
            };
        },
        methods: {
            handleSelect(key, keyPath) {
                console.log(key, keyPath);
            }
        }
    }
</script>